package ink.lovejinhu.deamon;

/**
 * @author jinhu
 * created 2021-07-20 16:26
 */
public class Main {
    public static void main(String[] args) {
        Thread v1 = new Thread(() -> {
            System.out.println("哈哈");
        });
        v1.setDaemon(true);  //设置为守护线程，实际上就是后台线程
        v1.start();
        System.out.println(v1.isAlive());
    }
}
